<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?
  include "conexao.php" ;
  $conec ;
  $bco ;

    include "cabecalho.php" ;
    $codigo = $_POST['txcod'] ;
     
	$stgsql = $conec->prepare("select * from pizzas 
							  where codigo=\"$codigo\"");  
	$stgsql->execute();

	if ($stgsql->rowCount() > 0)
	  {  
	  $stgsql = $conec->prepare(" delete from pizzas where codigo=\"$codigo\"");  
	  $stgsql->execute();
	  
	  include "sucessoexclusaopizza.php";
	  }else {
	    include "erroexclusaopizza.php" ;
	}
    include "rodape.php" ;
 
?>
</body>
</html>
